using System.Security.Cryptography;
using System.Text;

namespace Dogshow.BusinessLogic.Utils
{
    public class Md5Encryptor : IEncryptor
    {
        public byte[] Encrypt(string data)
        {
            MD5 md5 = MD5.Create();
            byte[] inputBytes = Encoding.Unicode.GetBytes(data);
            byte[] hash = md5.ComputeHash(inputBytes);
            return hash;
        }
    }
}